package com.acquisition.mapper;

import com.acquisition.entity.SysPermission;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;

/**
 * @Author Jay Chou
 * @Description 权限表(SysPermission)表数据库访问层
 * @Date 2023-04-12 12:32
 **/
@Mapper
public interface SysPermissionMapper {

    SysPermission queryById(String id);

    List<SysPermission> queryPermissionList(SysPermission sysPermission);

    List<SysPermission> queryPermissionListByUserId(String userId);

    List<SysPermission> queryPermissionListByPath(String path);

    int insert(SysPermission sysPermission);

    int update(SysPermission sysPermission);

    int deleteById(String id);

}